package pojo;

import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

public class Student {
    private Integer sId;//编号
    private String studentNum;//学号
    private String studentName;//姓名
    private String gender;//性别（0:男 1:女 2:保密）
    private Integer age;//年龄
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;//出生日期
    private Integer classId;//班级编号
    private  Integer hostelId;//宿舍编号
    private String phone;//联系方式
    private  String email;//邮箱
    private String homeAddress;//家庭住址
    private String emergencyContact;//紧急联系人
    private String emergencyContactPhone;//紧急联系电话
    private String major;//专业
    private String status;//学生状态——0：在读，1：毕业
    private String delFlag;//删除标记（0：存在，1：删除）
    private String createBy;//创建人
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;//创建时间
    private String updateBy;//更新人
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;//更新时间
    private String remark;//备注


    public Student() {
    }

    public Student(Integer sId, String studentNum, String studentName, String gender, Integer age, Date birthday,
                   Integer classId, Integer hostelId, String phone, String email, String homeAddress, String emergencyContact,
                   String emergencyContactPhone, String major, String status, String delFlag, String createBy,
                   Date createTime, String updateBy, Date updateTime, String remark) {
        this.sId = sId;
        this.studentNum = studentNum;
        this.studentName = studentName;
        this.gender = gender;
        this.age = age;
        this.birthday = birthday;
        this.classId = classId;
        this.hostelId = hostelId;
        this.phone = phone;
        this.email = email;
        this.homeAddress = homeAddress;
        this.emergencyContact = emergencyContact;
        this.emergencyContactPhone = emergencyContactPhone;
        this.major = major;
        this.status = status;
        this.delFlag = delFlag;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.remark = remark;
    }

    public Integer getsId() {
        return sId;
    }

    public void setsId(Integer sId) {
        this.sId = sId;
    }

    public String getStudentNum() {
        return studentNum;
    }

    public void setStudentNum(String studentNum) {
        this.studentNum = studentNum;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public Integer getHostelId() {
        return hostelId;
    }

    public void setHostelId(Integer hostelId) {
        this.hostelId = hostelId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHomeAddress() {
        return homeAddress;
    }

    public void setHomeAddress(String homeAddress) {
        this.homeAddress = homeAddress;
    }

    public String getEmergencyContact() {
        return emergencyContact;
    }

    public void setEmergencyContact(String emergencyContact) {
        this.emergencyContact = emergencyContact;
    }

    public String getEmergencyContactPhone() {
        return emergencyContactPhone;
    }

    public void setEmergencyContactPhone(String emergencyContactPhone) {
        this.emergencyContactPhone = emergencyContactPhone;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
